package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.HotelsOrder;

/**
 * 房间订单Mapper接口
 *
 * @author Y.C
 * @date 2024-02-21
 */
public interface HotelsOrderMapper extends BaseMapper<HotelsOrder>
{
    /**
     * 查询房间订单
     *
     * @param orderId 房间订单主键
     * @return 房间订单
     */
    public HotelsOrder selectHotelsOrderByOrderId(Long orderId);

    /**
     * 查询房间订单列表
     *
     * @param hotelsOrder 房间订单
     * @return 房间订单集合
     */
    public List<HotelsOrder> selectHotelsOrderList(HotelsOrder hotelsOrder);

    /**
     * 新增房间订单
     *
     * @param hotelsOrder 房间订单
     * @return 结果
     */
    public int insertHotelsOrder(HotelsOrder hotelsOrder);

    /**
     * 修改房间订单
     *
     * @param hotelsOrder 房间订单
     * @return 结果
     */
    public int updateHotelsOrder(HotelsOrder hotelsOrder);

    /**
     * 删除房间订单
     *
     * @param orderId 房间订单主键
     * @return 结果
     */
    public int deleteHotelsOrderByOrderId(Long orderId);

    /**
     * 批量删除房间订单
     *
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHotelsOrderByOrderIds(Long[] orderIds);
}
